app.out : libmath.so app.c
	gcc app.c -L ./ -l math -o app.out
libmath.so : libsrc.c  libsrc.h
	gcc -fPIC -Wall -c libsrc.c -I ./ -o libmath.o
	gcc -shared -o libmath.so libmath.o
install:
	echo | pwd > /etc/ld.so.conf.d/mymath.conf
	ldconfig
remove:
	rm -f /etc/ld.so.conf.d/mymath.conf
	ldconfig
clean:
	rm -f /etc/ld.so.conf.d/mymath.conf
	ldconfig
	rm -f *.o *.out *.so